package ink.metoo.gude.util

object RegexUtils {

    const val BASIC_PASSWORD_PATTERN = "^(?=.*[a-zA-Z]).{6,25}$"
    const val MEDIUM_PASSWORD_PATTERN = "^(?=.*[A-Za-z])(?=.*\\d)(?=.*[@$!%*#?&])[A-Za-z\\d@$!%*#?&]{8,25}$"
    const val STRONG_PASSWORD_PATTERN = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,25}$"
    const val ACCOUNT_PATTERN = "^[a-zA-Z0-9_]{1,20}$"
    const val IMG_PATTERN = "^(jpg|png|jpeg|gif)$"

    val IMG_REGEX by lazy {
        Regex(IMG_PATTERN, RegexOption.IGNORE_CASE)
    }

}